package com.chenyue.cm.user.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lbx
 * @since 2024-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdGoodsSku对象", description="")
@TableName("jd_goods_sku")
public class JdGoodsSku extends Model<JdGoodsSku> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("goods_id")
    private String goodsId;

    @TableField("sku_code")
    private String skuCode;

    @TableField("attr_info")
    @ApiModelProperty(value = "商品属性信息")
    private String attrInfo;

    @TableField("sku_imgurl")
    @ApiModelProperty(value = "图片路径")
    private String skuImgurl;

    @TableField("sku_price")
    @ApiModelProperty(value = "商品进价")
    private BigDecimal skuPrice;

    @TableField("sku_weight")
    @ApiModelProperty(value = "重量（/g）")
    private String skuWeight;

    @TableField("sku_costprice")
    @ApiModelProperty(value = "销售原价")
    private BigDecimal skuCostprice;

    @TableField("sku_saleprice")
    @ApiModelProperty(value = "商品销售价")
    private BigDecimal skuSaleprice;

    @TableField("sku_sales")
    @ApiModelProperty(value = "销量")
    private Integer skuSales;

    @TableField("sku_stock")
    @ApiModelProperty(value = "库存")
    private Integer skuStock;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @TableField("create_user")
    @ApiModelProperty(value = "创建人")
    private String createUser;

    @TableField("update_time")
    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @TableField("update_user")
    @ApiModelProperty(value = "更新人")
    private String updateUser;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
